package com.szm.userserver.serviceimpl;

import com.szm.userserver.entity.User;
import com.szm.userserver.mapper.UserRedisDao;
import com.szm.userserver.service.UserRedisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("UserRedisService")
public class UserRedisServiceImpl implements UserRedisService {

    @Autowired
    private UserRedisDao userRedisDao;

    @Override
    public String getUser(String username) {
        return userRedisDao.getUser(username);
    }

    @Override
    public void setUser(User user) {
        userRedisDao.setUser(user);
    }

    @Override
    public void delUser(String username) {
        userRedisDao.delUser(username);
    }

    @Override
    public Object getObj(Object object) {
        return userRedisDao.getObj(object);
    }
}
